#!/bin/bash
#

for name in $(seq 3); do
  if id $name &> /dev/null; then
    echo"用户$name存在"
  else
  useradd $name
    echo"用户$name创建完成"
  fi
done
 
